<template>
  <button type="button">
    <h1>{{ number }}</h1>
    <h3>{{ state }}</h3>
  </button>
</template>

<script>
export default {
  name: "StateCard",
  props: {
    /**
     * 数字
     */
    number: Number,
    /**
     * 状态
     */
    state: String,
  },
};
</script>

<style lang="scss" scoped>
button {
  display: block;
  outline: none;
  border: none;
  padding: 6px 12px;
  color: #212529;
  background: #f8f9fa;
  transition: 0.2s linear;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  h1 {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 13px;
    font-weight: 400;
    color: #6c757d;
    margin: 0;
  }
  &:focus {
    background: #e2e6ea;
    outline-width: 5px;
  }
}
</style>